package com.battle.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.TableComment;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import lombok.Data;
import nirvana.core.domains.ann.AccEntity;
import nirvana.core.domains.entity.DomainBaseEntity;
import nirvana.core.domains.enums.EntityType;

import javax.persistence.Table;

/**
 * @author anni.zhu
 * @author anni.zhu@king-v.com
 * Created in 2024/8/22 14:33
 */
@Data
@TableName(value = "USER_ROLE_MP",autoResultMap = true)
@Entity(name = "USER_ROLE_MP")
@AccEntity(value = "用户和角色关联", type = EntityType.SERVICE_ENTITY)
public class UserRoleMp extends DomainBaseEntity<UserRoleMp> {


    /**
     * 用户id
     */
    @Column(
            nullable = false)
    private Long userId;

    /**
     * 角色id
     */
    @Column(
            nullable = false)
    private Long roleId;


}
